package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 号码绑定关系表
 * </p>
 *
 * @author YanYang
 * @since 2025-04-08 11:33:23
 */
@Getter
@Setter
@TableName("t_middle_relation")
@ApiModel(value = "MiddleRelation对象", description = "号码绑定关系表")
public class MiddleRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("号码绑定关系ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("技师ID")
    @TableField("tid")
    private Long tid;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("绑定 ID")
    @TableField("bindId")
    private String bindId;

    @ApiModelProperty("绑定的小号")
    @TableField("middle_number")
    private String middleNumber;

    @ApiModelProperty("绑定小号的号码 A")
    @TableField("bind_number_a")
    private String bindNumberA;

    @ApiModelProperty("绑定小号的号码 B")
    @TableField("bind_number_b")
    private String bindNumberB;

    @ApiModelProperty("绑定关系（0=解绑 1=绑定）")
    @TableField("bind_status")
    private Integer bindStatus;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
